// i.d(t, { A: () => AnnotationsViewData })
import Data from "../object/Data"
import ObservableValue, { createObVal } from "../observer/observable.value"
export default class AnnotationsViewData extends Data {
  listIndexObservable: ObservableValue
  searchBlockObservable: ObservableValue
  constructor() {
    super()
    this.name = "annotations-view-data"
    this.listIndexObservable = createObVal(-1)
    this.searchBlockObservable = createObVal(null)
  }
  setListIndex(e) {
    this.listIndexObservable.value = e
  }
  get listIndex() {
    return this.listIndexObservable.value
  }
  onListIndexChanged(e) {
    return this.listIndexObservable.onChanged(e)
  }
  setSearchBlock(e) {
    this.searchBlockObservable.value = e
  }
  get searchBlock() {
    return this.searchBlockObservable.value
  }
  onSearchBlockChanged(e) {
    return this.searchBlockObservable.onChanged(e)
  }
}
